package com.amumu.drama.common.modules.invitation.service;

import com.amumu.drama.common.base.api.CommonResult;
import com.amumu.drama.common.modules.invitation.dto.NewMemberDto;
import com.amumu.drama.model.InvitationNewMember;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @date 2024/04/02
 * @author pgt
 */
public interface InvitationNewMemberService extends IService<InvitationNewMember> {

    /**
     * 生成邀请码
     * @param newMemberDto
     * @return
     */
    CommonResult<String> generateInvitationNewMemberCode(NewMemberDto newMemberDto,String userId);

    /**
     * 校验填入的主播优惠码
     * @param invitationCode
     * @return
     */
    CommonResult<String> validateCode(String invitationCode);

}
